<?php
/**
 * This file defines the exception class {@see \BF\IO\FolderNotFoundException}
 *
 * @author     Kado <ulfikado@gmail.com>
 * @category   Beluga PHP5.3+ Framework
 * @package    BF\IO
 * @since      2015-01-31 00:29
 * @subpackage Exceptions
 * @version    0.1
 */

namespace BF\IO
{

   /**
    * This exception should be used if a required folder not exists.
    *
    * The class extends from {@see \BF\IO\Exception}.
    *
    * @since v0.1
    */
   class FolderNotFoundException extends \BF\IO\Exception
   {

      # <editor-fold defaultstate="collapsed" desc=" - - >   P U B L I C   C O N S T R U C T O R   - - - - - - - - - - - - - - - - - -">

      /**
       * Inits a new instance
       *
       * @param string     $folder   The missed folder.
       * @param string     $message  The optional error message
       * @param int        $code     The optional error code (Default to \E_USER_ERROR)
       * @param \Exception $previous A optional previous exception
       */
      public function __construct( $folder, $message = null, $code = \E_USER_ERROR, \Exception $previous = null )
      {
         parent::__construct(
            $folder,
            'The Folder dont exists.' . $this->appendMessage( $message ),
            $code,
            $previous
         );
      }

      # </editor-fold>

   }

}

